﻿using System.Windows.Forms;

namespace Conversor
{
    class BrowseFile
    {
        private static OpenFileDialog _myFile = new OpenFileDialog { AddExtension = true, Filter = "Excel (*.xls)|*.xls" };

        public string browse()
        {
            if (_myFile.ShowDialog() == DialogResult.OK)
            {
                Properties.Settings.Default.Excel = _myFile.FileName;
                Properties.Settings.Default.Save();
                return Properties.Settings.Default.Excel;
            }
            return null;
        }

    }
}
